package com.rerun.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rerun.entity.WatchedJob;
import com.rerun.mapper.WatchedJobMapper;
import com.rerun.service.IWatchedJobService;
import com.rerun.vo.park.ParkResumeViewVo;

/**
 * The type Watched job service.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /10/11 10:48
 */
@Service
public class WatchedJobServiceImpl extends ServiceImpl<WatchedJobMapper, WatchedJob> implements IWatchedJobService {
    @Resource
    private WatchedJobMapper watchedJobMapper;

    @Override
    public List<String> selectJobIds(String memberId) {
        return watchedJobMapper.selectJobIds(memberId);
    }

    @Override
    public WatchedJob selectByMemberIdAndJobId(String memberId, String jobId) {
        return watchedJobMapper.selectByMemberIdAndJobId(memberId, jobId);
    }
    
    @Override
	public Page<ParkResumeViewVo> selectParkWatchListPage(Page<ParkResumeViewVo> page, String parkId) {
		page.setRecords(watchedJobMapper.selectParkWatchListPage(page,parkId));
		return page;
	}
}
